package com.atguigu.cart.service;

import com.atguigu.cart.vo.CartItemVO;
import com.atguigu.cart.vo.CartVO;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2021/8/16 14:47 周一
 * @description :
 */
public interface ICartService {

    CartItemVO addToCart(Long skuId, Integer num);

    CartItemVO getCartItem(Long skuId);

    CartVO getCart();

    void clearCart(String cartKey);

    void checkItem(Long skuId, Integer check);

    void changItemCount(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<CartItemVO> getUserCartItems();

}
